import { createApp } from 'vue' // 引入Vue
import './style.css' // 引入全局样式
import App from './app.vue' // 引入App组件
const app = createApp(App)

import collect from 'collect.js' // 引入collect.js
app.config.globalProperties.$collect = collect

import request from '@/extensions/axios'
app.config.globalProperties.$request = request

import Cookies from 'js-cookie'
app.config.globalProperties.$cookies = Cookies

import { createPinia } from 'pinia' // 引入Pinia
const pinia = createPinia()
app.use(pinia)



import { router } from '@/extensions/router' // 引入路由
app.use(router)

import i18n from '@/extensions/i18n'
app.use(i18n)

import { FontAwesomeIcon } from '@/extensions/font_awesome_icon' // 引入FontAwesome配置
app.component('font-awesome-icon', FontAwesomeIcon)

import '@/extensions/vee_validate' // 引入验证规则
import '@/extensions/helpers' // 引入帮助函数
app.mount('#app')
